package com.open.cloud.rbac.mapper.menu;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.open.cloud.rbac.entity.menu.CoreMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author wangzengzhou01
 * @since 2024-12-23
 */
@Mapper
public interface CoreMenuMapper extends BaseMapper<CoreMenu> {

    /**
     * 根据角色Id获取菜单列表
     *
     * @param roleId
     * @return
     */
    public List<CoreMenu> selectMenuByRoleId(@Param("roleId") String roleId);

    /**
     * 根据ID获取菜单列表
     *
     * @param list
     * @return
     */
    public List<CoreMenu> selectMenuInIds(@Param("list") List<String> list);

}
